package com.yue.rabbitmq.service.impl;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
public class RabbitMQConsumer {
    @RabbitListener(queues = "4g01")
    public void receiveMessageFrom4G01(String message) {
        System.out.println("Received from 4g01: " + message);
    }
    @RabbitListener(queues = {"4g01","4g03"})
    public void receiveMessageMultipleQueues(String message) {
        System.out.println("Received from MultipleQueues: " + message);
    }
}
